﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using power.Resources;

namespace power
{
    public partial class MainPage : PhoneApplicationPage
    {
       
        public MainPage()
        {
            InitializeComponent();
;
        }

        private void txt_nombe_TextChanged(object sender, TextChangedEventArgs e)
        {

        }

        private void btnCrear_Click_1(object sender, RoutedEventArgs e)
        {
            if (txt_nombe.Text != "")
            {
                //codigo para guardar el nombre de la presentacion en la base de datos 
            }
            else
            {
                MessageBox.Show("No puede dejar campos en vacios.");
                return;
            }
            
            string url = "/createSlider.xaml";
            NavigationService.Navigate(new Uri(url, UriKind.Relative));
        }
      
    }
}